package com.hhit.bigscreenbackmanage.dao.aqgl;

import com.alibaba.fastjson.JSONObject;
import com.hhit.bigscreenbackmanage.entity.aqgl.TAqglZypTj;
import com.hhit.bigscreenbackmanage.entity.aqgl.TTestZyp;
import com.hhit.bigscreenbackmanage.vo.aqgl.AqglSearchVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository
public interface AqglZypTjDao {

    /**
     * @Description: 批量插入作业票统计数量
     * @Author: qianchengcheng 
     * @Date: 2021/7/26 13:56
     * @Param: [aqglZypTjList] 
     * @Return: int
     **/
    int batchInsertAqglZypTj(@Param("list") List<TAqglZypTj> aqglZypTjList) throws Exception;
    
    /**
     * @Description: 分页查询作业票统计数量数据
     * @Author: qianchengcheng 
     * @Date: 2021/7/26 13:57
     * @Param: [aqglSearchVo] 
     * @Return: java.util.List<com.hhit.bigscreenbackmanage.entity.aqgl.TAqglZypTj>
     **/
    List<TAqglZypTj> getAqglZypTjPageInfo(AqglSearchVo aqglSearchVo) throws Exception;

    /**
     * @Description: 根据datetime查询数据
     * @Author: qianchengcheng 
     * @Date: 2021/7/26 18:04
     * @Param: [datetime] 
     * @Return: java.util.List<java.lang.String>
     **/
    List<String> getAqglZypTjByDateTime(@Param("datetime") String datetime) throws Exception;

    /**
     * @Description:
     * @Author: qianchengcheng 
     * @Date: 2021/7/26 18:06
     * @Param: [ids] 
     * @Return: int
     **/
    int batchDeleteAqglZypTjByIds(@Param("ids") List<String> ids) throws Exception;
    
    /**
     * @Description:
     * @Author: qianchengcheng 
     * @Date: 2021/7/26 20:50
     * @Param: [param] 
     * @Return: com.hhit.bigscreenbackmanage.entity.aqgl.TAqglZypTj
     **/
    TAqglZypTj getAqglZypTjEntityByParam(Map<String,Object> param) throws Exception;


    /**********************************根据e安全提供接口获取数据**********************************/

    /**
     * 每日作业票统计
     * @param dataTime
     * @return
     * @throws Exception
     */
    JSONObject getDayWorkTicketsTj(@Param("dataTime")String dataTime) throws Exception;

    /**
     * 每日作业票详情
     * @param json
     * @return
     * @throws Exception
     */
    List<TTestZyp> getDayWorkTicketsDetail(JSONObject json) throws Exception;
}
